<?php 
$conn = mysql_connect("127.0.0.1","root","");
mysql_select_db("xingtan");
$id = mysql_real_escape_string($_GET['id']);
$sql = "DELETE FROM articles WHERE id=" . $id . ";";
print($sql);
if ($id) {
  mysql_query($sql);
  print 'remove ok';
} else {
  print 'para error';
}
mysql_close($conn);
?>
